System and method for regulating electric discharge machining gap

ABSTRACT

The peak voltage of each discharge pulse is measured and, if the voltage of the pulse exceeds a high threshold value, also the time between the passing of that value and the moment the pulse voltage thereafter drops below a second lower threshold value. The two measurements are expressed in pulses that are combined, preferably by addition, to provide a regulating value, whose deviation (&#39;&#39;&#39;&#39;error&#39;&#39;&#39;&#39;) from a standard value is predicted for a coming period, taking account of recent electrode position change as well as regulating value trend. The sign of the predicted error determines in which direction the electrode drive motor will be energized, but if the predicted error is less than a threshold value no motor energization occurs until the next error prediction. The sense in which the regulation operates is so defined that at a time when the electrodes are not already in relative movement an increase in the regulating value, at least if it persists, causes the electrodes to be moved closer together.

United States Patent 1191 Ullmann et al.

[21] Appl. No.: 312,864

[30] Foreign Application Priority Data Aug. 17, I972 Switzerland 12214/72 [52] [1.8. CI. 204/I29.25, 204/224 M [5l] Int. Cl B23p 1/17, 323p l/02, 823p H00 [58] Field of Search 204/l29.25, 129.1, 129.2,

[56] References Cited UNITED STATES PATENTS 3,616,346 l0/l97l Inoue 204/l29.25 X

FOREIGN PATENTS OR APPLICATIONS Japan 204/l2925 3/l966 Japan ..2()4/l29.25 l0/l967 Japan ..2(l4/l29.25

Primary Examiner-F. C. Edmundson Attorney, Agent, or Firm-Flynn & Frishaul' [57] ABSTRACT The peak voltage of each discharge pulse is measured and, if the voltage of the pulse exceeds a high threshold value, also the time between the passing of that value and the moment the pulse voltage thereafter drops below a second lower threshold value. The two measurements are expressed in pulses that are combined, preferably by addition, to provide a regulating value, whose deviation (error) from a standard value is predicted for a coming period, taking account of recent electrode position change as well as regulating value trend. The sign of the predicted error determines in which direction the electrode drive motor will be energized, but if the predicted error is less than a threshold value no motor energization occurs until the next error prediction. The sense in which the regulation operates is so defined that at a time when the electrodes are not already in relative movement an increase in the regulating value, at least if it persists, causes the electrodes to be moved closer together.

7 Claims, 7 Drawing Figures PATEHTEDJA'N 71975 SHEET 2 [1F 5 PATENTEUJAN mm $859,186

SHEET [JF FIG. 5

SET 17,18 8 21 TO ZERO DEEP END YES REACHED? STOP LOAD AVG. CIRCUiT SHIFT (1?) N BITS BACK THENH7)== (2H CALCULATE! e=(23){21) Ax=(22)-(224) Ae=(20)-(201) T OTOR CURRENT Imax.- S g S PATENTEB 7 I 5 sum 5 or s Iv T I A I I. IT I O l [V I LIV O Y 0 335222: S35E22: I. mo 0 zoCZ @052 2952 5058i w mo 22w w ,w

This invention concerns a method of regulating the working gap of electro-erosion machining equipment in which a workpiece electrode to be machined and a tool electrode are adjusted in relative position by an electrode advancing drive. In such equipment, voltage pulses of a predetermined duration repeated at suitable time intervals are applied to produce electric discharges of a particular desired type of machining by erosion of the workpiece. The gap is flushed with a suitable liquid to removematerial loosened or separated. The invention also concerns apparatus for carrying out the regulating method.

In known electro-erosion machines of the kind just mentioned, the width of the working gap between the tool electrode and the workpiece electrode is regulated during the erosion operation by an automatic electrode advancing mechanism which may simply be referred to as thedrive of the machine. In their operation, the average gap voltage, the average gap current or the gap resistance is taken as a regulating value (measured value) and compared with the desired value of the same parameter. The voltage difference produced by this comparison is supplied to an electrode drive for regulating the width of the working gap. Such regulation methods have the great disadvantage of either not recognizing at all any deformation ofthe form or condition of the pulses crossing the working gap or else not recognizing such deformation soon enough. In consequence, the electrode drive is not controlled in correspondence with the physical conditions in the working gap, with the further result that the erosion operations are both frequently interrupted and the efficiency of the operation is poor. There is also the further disadvantage that the energy liberated by individual working pulses in the gap modifies the regulation characteristics ofthe known electrode drive controls. Such modifications can arise if the operator readjusts the electrical parameters of the erosion voltage generator, such as voltage, current, duty cycle, or repetition frequency, or if during the erosion operation the physical conditions in the working gap change unfavorably in an uncontrolled manner as a result of changes in the flow or condition of the liquid flushing medium or changes in the effective carrier between tool and workpiece. In both cases the operator must carry out time consuming efforts to make readjustments for maintenance of the regulating system of the electrode drive. These regulating systems, as is well known, must be adjusted to fit modified erosionprocess conditions.

The object of the invention is to avoid the disadvantages above mentioned of the known regulating systems for electrode drives and, moreover, to make possible the timely determination of deformation in the form and nature of pulses in the various ways they arise in electrode erosion machining technology and, finally, to provide regulation commands to the electrode drive at a sufficiently early time. By timely determination is to be understood that as soon as a tendency to deformation of a pulse form or shape or a tendency to deterioration ofthe pulse is found, and before the deformation or deterioration has actually taken place, the appropriate regulating value will be entered into the control system of the electrode'drive. The course of pulse deformation or deterioration as observed has been found to indicate an incipient degeneration of the erosion discharge.

SUBJECT MATTER OF THE PRESENT INVENTION Briefly, for every pulse applied at the working gap, the peak voltage is measured and also the time between the moment the pulse voltage first rises past a particular voltage value related to the rising edge of the pulse and the moment the pulse voltage thereafter drops below a second voltage value related to a falling edge of the pulse. The width of the working gap of the electrode erosion machine is then regulated in a manner dependent upon those values, that is, the peak voltage and the time measurement of the invention. With the poper choice of units for measurement of voltage and time it is convenient to provide a regulating value by simple addition of the two measurements, with the time measurement blanked out, however, unless the peak voltage reaches at least a certain threshold. It is also useful to apply the regulating value for control purposes, after averaging procedures, by the calculation of a predicted regulating value, which in either case, takes account of current electrode motion. For this purpose the change of regulating value and of electrode position from one measurement or average measurement to the next is continually computed. The sense in which the regulation operates is so defined that at a time when the electrodes are not already in relative movement an increase in the regulating value, at least if it persists, causes the electrodes to be moved closer together.

The arrangement of apparatus carrying out the method of the invention has the following features. A multi-level detector is used as a voltage responsive element with its input connected to the two electrodes facing the working gap. The rising edge of the voltage pulse exceeds successive predetermined threshold values of the multi-level detector and the succession of signals so produced are supplied to a storage register. In addition, when a particular first threshold value related to the rise characteristic of the voltage pulse, which may be referred to as the first threshold value, is exceeded, the corresponding response of the multilevel detector operates a gate circuit starting a counter, which is stopped when the falling edge of the voltage pulse goes below a second threshold value producing a corresponding signal, so that the counter measures the time period between the first and second threshold values of the voltage pulse as just mentioned. The storage register is then connected with the counter over an interlocking circuit which provides for transferring the content of the storage register to the counter only when the trailing edge of the pulse has dropped below the aforesaid second threshold value. When that transfer occurs, the transferred information is combined with the aforesaid time measurement in the counter. At the end of the pulse in the working gap a logic control system transfers the combined content of the counter over to a regulating circuit to serve as a regulating value on the basis of which the electrode drive is controlled by the regulating circuit. When the pause between the pulses in the working gap begins, the logic control circuit resets to zero both the storage register and the counter.

The invention is further described by way of example with reference to the annexed drawings, wherein:

FIGS. 1a and lb are graphical representations showing the deformation of square voltage pulses in the case of greater and smaller discharge energy respectively;

FIG. 2 is a graphical representation showing various pulse shapes for explanationof the method of the invention;

FIG. 3 isa simplified block diagram of the apparatus of the invention;

FIG. 4 is a detailed block diagram of a circuit arrangement forming part of the apparatus shown in FIG.

FIG. 5 is a flow chart of the operation of the circuit arrangement shown in FIG. 4, and

FIG. 6 is a tabulation showingthe various combinations of conditions in control logic circuit 24 of FIG. 5 andthe corresponding action of drive motor 16.

In FIG. la are shown various forms and-types of pulses. The voltage U is plotted as the ordinate and time as the abscissa in this graphical representation. The first of the pulses shown has a peak voltage correspondingto the voltage U and is of normal shape and form. For a pulse of this type, a certain delay period passes between the beginning of the ignition voltage and the discharge which occurs when the voltage U of the pulse drops to the normal firing voltage U,,.

The second-pulse shows that as the result of changes in the physical conditions in the working gap, the discharge-already strikes at a much smaller ignition voltage than was the case with the first pulse. In the case of the third pulse shown, the physical condition of the working gap has changed back in the direction of normalization, so that this pulse provides a discharge only after the ignition voltage U is reached and with a delay between the beginning of the ignition voltage and the discharge at the firing voltage U,,, which is smaller than in the case of the first pulse. These pulses are shown to indicate the changes inshape or form of the pulses reaching the working gap that occur without the known gap regulating systems or their operators being able to notice anythingof these changes. The fourth pulse,

which is designated A, shows a discharge between the electrodes occurring at an ignition voltage somewhat smaller than the ignition voltage value U, for which the equipment is adjusted. From the succeeding pulses, it is easy to see the tendency, that an arc is rapidly forming. The occurrence of this arc is shown at B. The char acteristic of this are is a firing voltage still smaller than in the case of normal pulse forms.

The tendency to deterioration or deformation of the pulse form in the direction of arc formation, shown in FIG. la and just discussed, has been up to now impossible to detect with any regulating system or by any operator. Only when the arc has formed in the working gap between the two electrodes does the first reaction of the known regulating systems take place. This isbrought out by-the situation indicated in FIG. la where the deformation of the form and shape of the pulse disappears a few pulses later and the pulses resume their normal shape and form. At this point it should be noted that the number of pulses shown in FIG. la in the transition from one forrnto another does not correspond with reality. In' practice obviously, a greater number of pulses are applied at the working gap in going from one shape over to another. Finally, it should also be remarked that pulses with relatively greater discharge energy, such as are used for coarse machining in electric erosion techonology.

In FIG. lb pulses of various forms and shapes are shown that involve small discharge energy and are used for fine or superfine machining. Again the voltage U is plotted as the ordinate and time as the abscissa. The first pulse reaches the ignition voltage U and after a certain delay period the discharge takes place between the electrodes, so that the voltage of the pulse drops to its normal firing voltage U In the case of fine or superfine machining the working gap is set much smaller than in the case of the pulse shown in FIG. 1 for coarse machining. If now in the case of fine or superfine machine with pulses as in FIG. lb the working gap for some reason or circumstances is reduced still further,

what happens to the form or shape of the pulses is shown by the succeeding pulses of FIG. lb. From the second, third and fourth pulses (the fourth pulse has an area designated 'A) the tendency can be seen for the delay period which lies between the onset of the ignition voltage U and the discharge, to become smaller while the ignition voltage does not change. The delay period shrinks only to a particular value, which, for example, is represented by the upper edge of the pulse A. If the working gap, already small, is. still further reduced during fine or superfine machining, the phenomenon is produced that the-ignition voltage of the pulse suddenly drops and the previously established delay period increases similarly. This is particularly apparent at the fifth pulse from the left. The tendency to deterioration or deformation in shape or form of the pulse, which is already present in the second pulse shown, leads to a condition represented by the pulse form and shape B. In such a condition the erosion operation has already stopped. The working gap in this case has effect only as a low ohm value resistance.

The known regulation systems cannot detect the tendency to deterioration and to deformation of these pulses. Only when the condition 8" is reached in the working gap and erosion has already stoppeddo the known regulation systems, after a certain regulation time, begin to affect the drive in such a way that the two electrodes are moved apart. Only then can the pulses be restored as shown in FIG. lb to the right of condition B. In reality substantially more pulses than shown in FIG. lb reach the working gap in going from one condition to the other. It may thus be noted that the known regulating systems for controlling the drive of electric erosion machines do not recognize deterioration or deformation of pulse form or shape in coarse machining, fine machining or superfine machining. Hence, the known regulating systems operate equally badly for the various kinds of electric erosion machining. In addition, special arrangements must be provided which relate only to the formation of arcs in the case of coarse machining or ,else react only to conductivity measurements, relating to the low ohm resistance condition in the working gap that may arise in fine or superfine machining. With these additional equipments the physical extent of such regulating systems becomes immense. In spite of these overgrown regulating systems, the tendency to pulse deterioration or deformation cannot be detected. As already mentioned, the complicated known regulating systems detect only the arcing condition in the case of coarse machining or the low ohmic resistance condition in the case of fine or superfine machining.

FIG. 2 shows the principleof the invention by which the deterioration tendency or deformation tendency or the pulses can be recognized both in coarse and also in fine and superfine machining. For comprehensive presentation, three pulses are shown in FIG. 2. Again the voltage U is plotted as ordinate and the time as abscissa. The pulse 100 represents a normal pulse. Its rising edge lll rises up to the peak voltage U,. The time T begins with the steep rising edge and ends where the discharge of pulse 100 takes place. The falling or trailing edge of the pulse 112 is a portion of the discharge at the normal firing voltage U The trailing contour 112 shows the composite portion of the pulse consisting of its discharge duration, firing duration and ending.

In accordance with the method of the invention, the peak voltage U, of the pulse 100 is detected in the apparatus of FIG. 3 and in addition, the time T is measured, the latter being the period that elapses between a first threshold value i of the rising edge 111 and a second threshold value k of the falling edge 112. In the case of the rectangular pulse 1000 of FIG. 2, the period T lying between the threshold values i and k, by coincidence, is substantially the period of presence of the peak voltage U In the case of other pulse forms, as for example trapezoidal, triangular or sinusoidal pulses, the period T signifies only the lapse of time from the moment the threshold value i is exceeded to the moment when the pulse voltage falls below the threshold value k. i

The pulse form 200 shown in FIG. 2 indicates the tendency to deterioration or deformation in the case of coarse machining, as has been explained in detail in connection with FIG. la. With the method of this invention, such a deterioration tendency is immediately ascertained. In the case of pulse 200, the rising edge 211 and a portion of the descending edge 212 come together in time because this pulse bridges the working gap at a low ignition voltage U The measure period T is in this case equal to zero. As will later be further developed, the regulating system of the invention immediately provides the corresponding control signal to the electrode drive, so that normal conditions again will be established in the working gap.

Pulse 300 in FIG. 2 shows the tendency to deterioration or deformation of the pulse form in the case of fine or superfine machining as already described in some detail in connection with FIG. 1b. In such a case, just as before in the case of coarse machining, the peak voltage U is measured. The time that elapses between the threshold values i and k, designated in this case by T is equal to zero. This results from the circumstance that the first threshold value 1' is no longer to be found on the rising edge 311 ofthe pulse. The second threshold value k indeed appears on the portion 312 of the descending edge of the pulse, but it alone has no effect on the apparatus for regulating the electrode drive further described in FIG. '3. In summary for FIG. 2, it should further be noted that the first threshold value i is important for the sensitivity of the regulating system. If the threshold value i for rectangular pulses 100, as shown in FIG. 2, is positioned on the rising edge 111 as shown in the drawing, the result is a greater sensitivity of the regulating system with respect to the tendency to deterioration or deformation under the different kinds of operation such as coarse machining (FIG. la) in fine or superfine machining (FIG. lb).

The whole regulating system shown in block diagram in FIG. 3 will now be discussed in its particularities. A

voltage level detector 3 is connected to the electrodes 1 and 2 between which is located the working gap 103. A single pole representation of all the connections has been chosen for the block diagram of FIG. 3. Thus only the connection between the single electrode 1 and the level detector 3 is drawn. If now the electronic output power switch (not shown in the drawing) of a pulse generator applies pulses to the two electrodes 1 and 2 over the conductor line 101, pulse forms as, for example, they are shown in FIGS. 1a, lb and 2 appear at the work gap 103. Let it be assumed that the electrodes 1 and 2 are so positioned with respect to each other that the work gap 103 has a correct width. In this case, the pulse of FIG. 2 appears at the working gap 103. The rising edge 111 of the pulse I00 is gauged in level detector 3 by means of M threshold values m. The level detector 3 contains a certain member of detector circuits for detecting the respective threshold values, thus providing a scanning operation. In FIG. 2 only three threshold values m-l, m and m+1 are shown for reasons of clarity. Of course, the level detector 3 can have as many detector circuits as are necessary to correspond to the desired subdivision of the rising edge 111 for measuring purposes. Hence, level detector 3 is equipped with M detector circuits and may appropriately be referred to as a multi-level detector.

As each threshold level is exceeded, the level detector 3 provides a definite signal to the storage register 4 over the connecting conductors, which are provided in appropriate number, namely M of them. These signals, which correspond to the individual threshold values, are temporarily stored in storage register 4.

As soon as the threshold value i, defined as in FIG. 2 and related to the rising pulse edge 111, is overstepped, the level detector 3 provides the corresponding signal likewise to the storage register 4, which in this case provides a signal over connection 41 to the logic 61 of gate circuit 6 and switches the counter circuit 7 to the timing pulse generator 14 over connection 141 by means of OR-gate 52 of the interlock circuit 5 activated over the coincidence circuit 62 of the gate circuit logic. The counter 7 now fills with pulses from the timing pulse generator until the next selected threshold value k is detected by level detector 3. This threshold value is related to the upper part of the descending edge 112 of pulse 100, in accordance with FIG. 2. When the pulse voltage thus drops below the threshold value k, level detector 3 provides a corresponding signal to storage register 7, which in a similar way as already described above, switches counter circuit 7 off from timing pulse generator 14, acting over connection 42, gate circuit 6 and interlock circuit 5. In this condition, the content of storage register 4, which has stored in binary fashion the M items of threshold value in information, is transferred to the counter 7 over the interlock circuit 5, which is composed of the coincidence circuit 51 and the aforesaid OR-gate 52. When this happens, this transferred content is added to the stored time indication which was counted between the threshold values [and k. At this stage, there is accordingly in counter 7 the regulating magnitude which is the combination of the time and the total number M of detected threshold values.

During the transfer of the contents of storage register 4 to the counter 7, there also occurs the activation of the logic control circuit 9 over connection 91. Logic control circuit 9 does not become active, however,

untilthepulse 100in working gap 103 has ended.- This isassured over the connecting conductor 102 between the power pulsing circuit of the pulse generator (not shown) and the timing counter 11. The pulse end signal is provided over connection 92 to the logic control circ uit9. The latter, acting over connection 93, causes the timing pulse generator 14 to be disconnected from the timing counter 11 and to be connected over connection 142 to the second timing counter 13 for timing the interpulse interval. Timing counter 13 is provided with a manual adjustment 131 to set the duration of the pause between pulses, so that when that duration has been reached by counting timing pulses, it provides over connection 131 a signal to the pulse generator output power circuit (not shown'lwhich commands the beginning of a new pulse furnished over connection 101. In this case, the logic control circuit 9 also, over connection 93, disconnects the timing pulse generator 14 from the second timing counter 13 and reconnects it over connection 141 to the timing counter 11 to control the pulse duration. Since the timing pulse generator 14 is responsible for both the pulse duration and the duration of theinterpulse interval for the working pulses at the working gap 103 and, at the sametime, counts the time between the threshold values i and k of the pulses 100, a forced syn'chronizationiof all the values is provided, thus simplifying the circuit as a whole. For the following explanation, let it be assumed that the logic control circuit 9 is in the condition that holds when the pulse 100 in the working gap 103 has ended and timing pulse generator 14 has been connected over line 142 to the second timing counter 13' for timing the interpulse interval. In this condition, the logic control circuit 9 provides an output signal over connection 95 to the coincident circuit 12. This output signal, provided over connection 121 to the intermediate'or buffer storage register 10, servesto cause the combined content of counter circuit 7, which represents the regulating value, to be transferred to and stored in intermediate storage register 10. At this point, thelogic control circuit 9 provides a reset signal over connection 96 to storage register 4 and counter circuit 7. This reset signal causes the additional rapid time pulse generator 8 acting over the connections 81 and 82 since both the storage register 4 and the counter circuit 7 back to zero, so that they are ready to receive information from the next pulse in the working gap 103. The regulating circuit 15 can now obtain the regulating value signal temporarily stored in intermediate storage register 10, which it does in order to operate on this regulating value in the manner described below in connection with FIG. 4. In this regulating circuit is provided corresponding signals over connection 161 to the regulating drive 16 which can be a positioning motor for the tool electrode 1, for instance. 5

Up to now, it has been described what happens when a normal pulse 100 (see FIG. 2) is applied to working gap 103 and the various values which go into the formation of the observed regulating value for the pulse has been pointed out.ln the next example, it will be explained how the regulating system operates when a pulse incorporating a tendency to deterioration or deformation of its shape or form is produced at the working gap 103. The pulses 200 and 300 of FIG. 2 are prototypes of such pulses.

The operation of the regulation system shown in FIGS. '3 and 4 will first be explained with reference to the pulse 200 of FIG. 2. There, with this consequence of uncontrollable changes of-the physical conditions in the working gap 103, as for example new flushing liquid flow relations as the result of changed surface area of the electrodes 1 and 2 or undesired collection of erosion products or formation of gas bubbles within the dielectric medium, etc., the working pulses provided over connection 101 to the electrode gap, from equipment not shown, have a tendency to deterioration or deformation of their shape or form as shown in FIG. la for the case of coarse machining, now exemplified by the prototype pulse 200 of FIG. 2. In this case the level detector 3, as already described, scans the rising edge 211 of the pulse 200 and provides a signal over the connections 31 to the storage register 4 for each threshold circuits built into multilevel detector 3. The closer to- I gether the individual threshold values are, the more accurate is the scanning of the rising pulse edge 211 and especially the determination of the peak voltage U Let it now be assumed for the example of pulse 200 that the peak voltage U lies just above the threshold value m+1. The next higher threshold value m 2 will not be detected by the corresponding threshold circuit in level detector 3. Hence the storage position which is allocated to threshold value m+1 in storage register 4 is also the last filled position, a circumstance that provides the information indicating the peak value U Since in the example provided by pulse 200 the peak voltage U lies below the threshold value i, the storage position in register 4 allocated to this threshold value 1 does not become occupied, so that the activation of gate circuit 6 over connection 41 to start counter 7 does not take place. In other words that means that in the case of the. pulse 200 there is no counting of the time between the two threshold values i and k. When now the threshold value k is passed on the descending edge 212 of the pulse, the coincidence circuit 51 of the interlocking circuit 5 will be opened over connection 32, so that the content'of storage register 4 will be given to the counter 7 over the interlocking circuit 5. The threshold values m of the rising pulse edge 21 are now stored in counter 7. As already mentioned above,

.after this transfer of the content of storage register 4 to the counter 7, the logic control circuit 9 is put into condition to operate by means of connection 91 but actually begins operation only when the content of timing counter 11, which is responsible for fixing the duration of the working pulse at the working gap 103, announces the end of the pulse over the connection 92 to the logic control circuit 9. As already said, the timing counter 11 with the assistance of timing pulse generator 14, which is connected to it over connection 143, determines the duration of the working pulse in the working gap 103.

When the logic control circuit 9 has received the pulse end signal just described, it activates coincidence circuit 12 over connection 95, so that the content of a counter circuit becomes temporarily stored in intermediate storage register 10. This content will be provided to the regulating circuit 15 over the connection 152, as soon as the regulating circuit has provided to the coincidence circuit over connection 151 the information that it needs the new regulating value for prediction of the regulating value deviation. The prediction of the next regulating value deviation is furnished over connection 161 to electrode drive motors 16, which in accordance with the signal either shifts the electrodes in one or the other direction or brakes their movement. That operation is described at a later point below in connection with FIG. 4. At this point, the operation of the system as shown in FIG. 3 is still under description.

Once the content of the counter 7 is stored in intermediate register 10, the logic control circuit 9 directs over connection 96 the resetting of storage register 4 and counter 7 to zero. Register 4 and counter 7 are thus made ready for the next pulse in the working gap 103. With register 4 and counter 7 set to zero, logic control circuit 9, acting over the connection 93, switches the timing pulse generator 14 away from timing counter 11, which is responsible for the duration of the working pulse, over to the second timing counter 13, which is responsible for the interpulse interval. This is indicated by the connections 142 and 143. The timing counter 13, which is set by manual control 131 to a particular pause length, provides a command over connection 131' to the output pulsing circuit of the pulse generator (not shown) for turning the latter on at the end of the pause so that the next pulse can appear at the working gap 103. The timing counter 11 then controls the duration of this pulse over the connection 102. As already said, the timing pulse generator 14 is connected over line 143 with this timing counter 11.

Up to now, the determination of the observed regulating value for the pulses 100 and 200 shown in FIG. 2 as examples has been explained. It was assumed that pulse 100 is a so-called normal pulse which has no tendency to deterioration or deformation of its shape or form. The pulse 200 is taken as an individual pulse from the pulse sequence shown in FIG. 1a in order to show howthe observed regulating value is formed for such a deformation-prone pulse. As already mentioned, a deterioration tendency is here involved which arises in coarse machining erosion, which tendency leads to the formation of an are if counter measures are not taken soon enough. The formation of the observed regulating value for the pulse 300 will now be briefly discussed as a third example.

This pulse 300 is taken from the pulse sequence of FIG. lb and shows the tendency of deterioration of pulse form or shape in the case of fine or superfine machining. In these types of machining, the tendency toward deterioration or deformation of the pulse is provided by the following conditions:

by uncontrolled changes in the flow relations on the dielectric medium, or

by excessively high electric field strength resulting from the formation of graphite layers on the surfaces of electrodes 1 and 2 in the course of fine or superfine machining.

This cause is generally known. TI-Ie'pulse 300 shows I a tendency particularly clearly. With the reduction of gap width, the peak voltage U (FIG. 1b) sinks to the value U (FIG. 2). Furthermore the period between the rising edge 311 and the upper part of the descending edge 312 increases. In the case of pulse 300, a discharge still does occur. This pulse shows a tendency, however, for discharges to be no longer possible and for the erosion operation to stop, as is shown for example by the pulse B of FIG. lb.

The rising edge 311 of pulse 300 is as before subdivided into threshold values m which have already been described in detail in connection with other pulses. In the system of FIG. 3, these threshold values corresponding to the rising edge of the pulse will be stored in storage register 4. A counter of the time period between a threshold value [and a threshold value It does not occur in this case, because the threshold value 1' is not reached by the pulse 300. It is ofcourse conccivcable, however, that the threshold value i could be set low enough in level detector 3 that the pulse rise edge 311 would overstep that value.

The formation of the observed regulating value of the pulse 300 of FIG. 2 takes place in the same way as already described for the system of FIG. 3 in connection with the pulses and 200. For completeness, it should be added that the regulating values of pulse 300 of FIG. 2 is stored in buffer storage register 10 of FIG. 3 from which register this regulating value is provided to the regulating circuit 15 as soon as the request therefore is given to the coincidence circuit 121 over the connection 151.

It is now in order to describe further the regulation circuit 15 itself with reference to FIGS. 4 and 5.

When a series of normal pulses 100 appears in sequence at the working gap 103 of FIG. 3, no regulation action worthy of the name takes place in the regulating circuit 15 of FIG. 3 and FIG. 4, so that it is not necessary to consider the example of a normal pulse series for the discussion of FIGS. 4 and 5. It needs at most to be said that in the case of normal pulses 100, the working gap 103 remains fixed in its prescribed width in spite of the progressive erosion.

It is next assumed that the working gap 103 has a width suited for coarse machining and that after a certain time the normal pulse 100 becomes subject to a tendency to deterioration or deformation of the pulse in the gap 103. Such a tendency is shown in FIG. la and a prototype is shown in FIG. 2 as pulse 200. The response to this pulse has already been described with reference to FIGS. 2 and 3. The explanation given below proceeds from the point at which the regulating value is temporarily stored in buffer storage register 10 (FIGS. 3 and 4).

The averaging circuit 17 obtains the information concerning the regulating value for pulse 200 out of the intermediate storage register 10. This operation of obtaining the regulating value occurs over connections 151 and 121, just as several times described already. The regulating values of a number of pulses of the sequence represented by FIG. 1a is furnished over connection 152 to the averaging circuit 17. Thus, the regulating values of, for example, four or five pulses following in direct time sequence are added to each other so that from these values their average value is formed. As is further described below, the tendency to are formation (FIG. 1a) is determined from this average value and accordingly utilized for regulation. The counting circuit 18 associated with averaging circuit 17 determines the number of pulses whose regulating values are to be added to each other. At every transfer of the regulating value of a pulse out of buffer storage register 10, the counter 18 changes its content by one. When the counter 18 has reached the value set in it, this N- place counter 18 provides a signal over connection 181 to an N-place shift register 19. The shift register 19 provides, over connection19l, a signal to'the averaging circuit 17 to terminate the addition of the regulating values and to shift the content of averaging circuit 17 by N storage places. 'By this shift, the average value is formed from the regulating values of, for example, five successive pulses of FIG. 1a. The average value so produced is furnished over connection 171 to one of the inputs of addition and subtraction circuit 21. Atthis point, the addition and subtraction circuit 21 determines the difference between the average observed value and the desired or reference value which the setting of reference value element 23 forms and supplies over conductor 231.

The average value-formed in circuit 17 is also furnished over connection 172 to the difference circuit 20 which forms the difference betweenthe average value just formed and the average value formed from the five previous pulses, which previous average value is stored in register 201. it is assumed in this description that such a previous average value was formed and is stored inregister 201, so that the difference circuit 21 can form the difference between the previousaverage value and the average now just reaching the difference circuit over connection 172. This difference between the two average values adjacent in time sequence is then supplied to the second of the three inputs of addition and subtraction circuit 21. Still another magnitudeis also supplied to the third input of this circuit 21 as will now be further explained. This third value relates to there]- ative position of the electrodes and is, for example, formed from the position of electrode 1 which is formed to serve as a tool in the machining operation. Each time that an average value is formed in the circuit 17 and thereafter furnished'over the connections 171 and 172 to the corresponding associated circuits, the spatial position of electrode 1 is indicated over connection 222 in a-second difference circuit 22 and there compared with the spatial position which the electrode had at the time of the next preceeding average value signal of the regulating value, which was and is stored in register 221. It can thus be said in summary that every formation of an average value is associated with the determination of the difference of two successive average values and of the difference of two successive electrode position values. The difference between the two successive position values goes over connection 223 to the third input of addition and subtraction circuit 21. Tile synchronization circuit 25 assures that the above described events take place in proper synchronism. Only when these three inputs of the circuit 21 are occupied does the derivation of a predicted regulating value take place in addition and subtraction circuit 21. What is actually predicted is not the regulating value itself butthe regulation error. The predicted regulation error is the deviation (difference and sign) of the predicted regulating value from the reference value provided by element 23. The observed regulating error is similarly defined. The observed regulating error is similarly defined. The prediction is established in accordance with the following equation:

s =e+k .Ae+k,Ax

in which: s is the predicted regulation error, e is the observed regulation error,

k is a constant that is added to'the regulation error and the position change of the. electrode} Ae is'a difference between two successive average values of the regulating value, and

Ax is a difference between two successive electrode positions. a

This equation is calculated in the addition and subtraction circuit 21. This operation provides a particular output condition in the circuit 21 which is indicated over connection 211 to the final storage register 24. The latter then accordingly provides for actuation of the drive motor 16 in the manner appropriate for reducing the regulation error s to zero.

The above operations will now be further described with reference to the two examples of coarse machining and fine or superfine machining respectively. By the predicted regulation error s calculated by the addition and subtraction circuit 21, the tendency to deformation of form of the individual pulses of FIG. 1a leading to the possible formation of an arc, is detected soon enough. If the reference value provided by the reference element 23 to the addition and subtraction circuit 21 is greater than the predicted regulation value, which is to say that the predicted regulation error 5 is negative, the drive motor 16 is actuated with full acceleration, to move the electrodes 1 and 2 apart. The working gap 103 is thereby increased, so that an arc cannot take place. The regulating system of the invention provides protection during the erosion operation, while the electrodes l and 2 are regulated for constant width of the gap 103, against the occurrence of an are by rapid increase of the working gap. The regulating system of the invention also protects against the formation of an are at the beginning of an erosion operation if the two electrodes 1 and 2 form too narrow a gap 103. If pulses are provided to the gap 103 in that case to the electrodes 1 and 2 which are then motionless, a tendency to arc formation results. The drive motor 16 is then so controlled that the erstwhile motionless electrodes are moved apart with full power. The tendency to arc for,- mation is characterized by the condition in the addition and subtraction circuit 21 in which the reference value provided by element 23 is greater than the predicted regulation value, so that the predicted regulation error s is negative. if now as the result of movement of the electrodes 1 and 2 apart from each other the predicted regulating value is greater than the aforesaid reference value, the regulation error then becoming positive, the final register 24 controls the drive motor 16 in such a way that the two electrodes 1 and 2 are braked with full power. From the foregoing discussion it follows that the regulating system of the invention does not sporadically detect conditions in the working gap 103 but monitors the entire operation, and is thus oriented regarding its course, so that it proceeds with the control of drive motor 16 in terms of the previous history of the operation.

Up to this point the tendency to deterioration or deformation of the working pulse has been described for the case of coarse machining. Deterioration and deformation of the pulse in the case of fine or superfine machining will now be considered. Such a pulse sequence is shown in FIG. lb.

As already mentioned several times, the tendency frequently arises in this case that the erosion operation suddenly stops and the working gap 103 takes on the property of a low ohm resistance. The form of the pulses shows the tendency where before this event takes place, by means of the regulating system of this invention, this tendency is ascertained in an optimum way by taking account of the previous history of the tendency by means of the predicted regulation error s furnished by the addition and subtraction circuit 21. The pulse 300 of FIG. 2 can now be taken as an example. This pulse is detected in the manner described with respect to FIG. 3 and the results are provided to the regulating circuit 15. There the pulse information is averaged in the manner discussed in connection with FIG. 4 and is operated on in connection with'other values so that the addition and subtraction circuit 21 will assume a condition that corresponds to the predicted regulation error s. In the case of the tendency shown in FIG. 1b, a condition results in circuit 21 of FIG. 4 in which the regulating value is smaller than the reference value provided by element 23, so that the predicted regulation error is negative. In this case the electrodes 1 and 2 are pulled apart so that the working gap 103 cannot take on the condition of a low ohm resistance and so that the erosion operation willnot be stopped.

As the electrodes 1 and 2 are backed away from each other, as soon as the predicted regulation error formed in circuit 21 of FIG. 4 is greater than the reference regulation error furnished by element 23, the motion of the electrodes apart from each other is at once braked by the drive motor 16. These operations show that the control of the drive motor is always carried out with account being taken of the entire previous history. If, for example, the predicted regulating value in the circuit 21 is greater than the reference value from the element 23, so that the predicted regulation error is positive, and if at the same time the electrodes 1 and 2 are standing still, as for example, before the erosion operation begins, the electrodes will be driven with full power toward each other. On the other hand, if during an erosion operation the electrodes are moving towards each other and if the predicted regulating value is greater than the reference value, so that the regulation error is again positive, the electrodes likewise will be moved towards each other, but not necessarily at full power. Similarly, braking of the electrodes moving together is effected if the predicted error is negative.

In principle, the direction of energization of the drive motor 16, for braking or driving as electrode dynamics may require, is determined by whether the predicted regulating value is greater or smaller than the reference value from the element 23 or, in other words, whether the predicted regulation error is positive or negative.

In FIG. 5 the manner of operation of the regulating circuit which consists principally of the averaging circuit 17 and the addition and subtraction circuit 21, is shown in the form of a flow chart. These operations have already been explained and discussed more particularly in connection with FIG. 4. It remains only to be pointed out that the deep end limit value mentioned in FIG. 5 is the limit value that indicates how far the tool electrode may be permitted to penetrate into the workpiece electrode by means of erosion machining. The deep endlimit value is set into the system before the beginning of the erosion operation. When this limit is reached, the entire regulation, as well as appropriate parts of the erosion machine, is automatically put out of operation.

The regulating system ofthis invention has been described in terms of the regulation of only one electrode pair for reasons of clarity and easier understanding. The regulation system may also be used for drive regulation of a number of electrodes or component electrodes. If an electrode is composed of several component electrodes, each component electrode is connected to the level detector 3. For each component electrode, the determination of the peak voltage takes place for every pulse as already described. Only for the particular electrode which shows the smallest peak voltage of all component electrodes is an additional measurement ofthe time lapse between the two already described threshold values i and k carried out for each pulse. This component electrode serves as the lead electrode for regulation of all of the component electrodes together. In a similar manner, where there are a plurality of electrodes, a single electrode may be used to provide regulation of all of the other electrodes as well as itself. This is a particular advantage in mass production, if identically shaped workpieces are to be machined with electrodes of identical form, for example, in ten or more electro-erosion machines. In this case the drive for all of the electrodes in the mass production group may be controlled from a single regulating system. The particular electrode which shows the lowest peak voltage will provide, as just described, the regulating value for all of the electrodes and thus serve as the lead electrode for the combined drive motor control.

The reference value element 23 may conveniently provide not only a reference value of the regulating value in order to determine the observed regulation error, which is the deviation of the observed average value from the reference value of the regulating value, but also a reference value for the absolute magnitude (i.e. magnitude independent of sign) of the regulation error to determine whether the predicted regulation error 5 is greater or less than the reference error value. Then, unless it is greater than such reference error value, as determined by means included in the addition and subtraction circuit 21, the final storage register 24 will be given the same content as if the predicted error were zero, so that the motor is not actuated for small predicted errors unless electrode motion requires brakmg.

FIG. 6 is a tabulation summarizing the control applied to the motor 16 for various conditions in the final storage register 24. The symbol s means the absolute value of the predicted error s, regardless of sign and s means either a reference threshold value provided by the element 23 or an inherent threshold in the circuit such that unless it is exceeded, s appears to be zero and therefore neither positive nor negative. The final storage register 24 may be a two-place three-valued register (i.e. with a center zero condition capable of registration) or a four-place binary register. In table the direction of electrode motion and of electrode actuation by the motor is indicated by obvious symbols for together or apart. The asterisk symbol indicates braking, which is of course produced by energization urging motion opposite to that being braked.

Although the invention has been described with reference to a particular illustrative example, it will be understood that modifications may be made within the inventive concept without departing from the spirit of the invention.

We claim:

l. A method of controlling the gap width in electroerosion apparatus having at least one gap between a workpiece electrode and'a tool electrode, having also means'for generating repeated voltage pulses of predetermined length at intervals and thereby producing electric discharges across said gap and drive means including a motor for moving one or both said electrodes to increase or reduce said gap, comprising the steps of:

measuring for each voltage pulse (100, 200, 300) applied to said gap (103) the peak voltage across the gap and also, when the peak voltage exceeds a predetermined value, measuring the time period between the moment the voltage across the gap first rises above a first predetermined value and the moment the voltage across the gap reaches a second lower predetermined value thereafter,

combining the results of the measurements to produce a regulating value that increases with increases of either or both of the measurements, and

regulating the width of said gap with reference to said regulating value by controlling the initiation, direction, power and braking of relative movement of said-electrodes, the sense in which the regulation is thus operated being defined by the requirement that at a time when the electrodes are not already in relative movementan increase in the regulating value, at least when it persists, causes theelectrodes to be moved closer together (FIG. 6, lines 2 and 5 of table).

2. A method as defined in claim 1 in which the said measurement results are additively combined to provide a regulation value, in which, further, said regulation value is compared to a predetermined reference value and in, which said means for increasing or decreasing said gap is so controlled as to minimize the deviation of said regulating value from said reference value.

3. Amethod as defined in claim 2 in which the variation with time of said regulating value and of electrode position is measured in a particular time period andthe change in regulating value for a succeeding time period is predicted therefrom and in which, further, in order to take account of the momentum of said electrodes (1,2) and the desired width of said gap (103) said motor (16) of said drive means is caused to affect the motion of said electrodes as follows:

a. said motor (16) moves said electrodes towards each other in the case in which said electrodes were standing still or moving together at the end of said particular time period and in the case in which the predicted regulating value exceeds said reference value by atleast a predetermined minimum difference;

b. said motor (16) moves said electrodes away from each otherin the case in which said electrodes were standing still or moving apart at the end of said particular time period and in the case in which the predicted regulating value is smaller than said reference value by at least a predetermined minimum difference.

4. A method as defined in claim 3 in which said motor (16) moves said electrodes toward each other with full power in the case in which said electrodes were standing still at the end of said particular time period and in the case in which the predicted regulating value exceeds said reference value by at least a predetermined minimum'difference and in which, further, said motor (16) moves said electrodes away from each other with full power in the case in which saidelectrodes were standing still at the end of said particular time period and in the case in which the predicted regulating value is slower than said reference value by at least a predetermined minimum difference,

said motor moving said electrodes in other cases with less than full power, at least for low values of the difference between the predicted regulating value and said reference value.

5. A method as defined in claim 2- in which the variation with time of said regulating value and of electrode position is measuredin a particular time period and the change of said regulating value for a succeeding time period is predicted therefrom and in which, further, taking account of the momentum of the electrodes (1,2) and the desired width of said gap (103) said motor (16) brakes said electrodes with full power in the case in which they were moving towards each other at the end of such particular time period and in the case in which said predicted regulating value is smaller than said reference value and also in the case in which said electrodes were moving apart at the end of such particular time period and said predicted regulating value is greater than said reference value.

6. A method as defined in claim 1 in which at least one electrode consists of a plurality of component electrodes, each associated with a different electro-erosion gap, in which method the peak voltage is measured for each voltage pulse for each component electrode individually, in which, further, for an electrode at which the measured peak voltage sinks below a predetermined limit value said time period is also measured, and in which, further, said peak value and said time period related to such component electrode are combined to provide a regulating value with reference to which regulating value the gaps associated with all of said component electrodes are controlled until another component electrode similarly takes over the gap width control directing function as a result of a fall of the voltage peak value at its-gap.

7. A method as defined in claim 6 which includes the steps of comparing the measured peak voltage at all of the gaps, selecting the first gap to show a measured peak voltage below a predetermined limit value as the gap with reference to which a regulating value for all of the gaps is thereafter derived and controlling all of the component electrodes, and hence all ofthe gaps, relative to said regulating value even after the peak voltages at all of the gaps measure higher than said predetermined limit value, until at another gap the measured peak voltage sink below said predetermined limit value, and thereafter similarly regulating all of the gaps with respect to a regulating value formed with reference to said peak value and said time period related to said other gap. 

1. A METHOD OF CONTROLLING THE GAP WIDTH IN ELECTRO-EROSION APPARATUS HAVING AT LEAST ONE GAP BETWEEN A WORKPIECE ELECTRODE AND A TOOL ELECTRODE, HAVING ALSO MEANS FOR GENERATING REPEATED VOLTAGE PULSES OF PREDETERMINED LENGTH AT INTERVALS AND THEREBY PRODUCING ELECTRIC DISCHARGES ACROSS SAID GAP AND DRIVE MEANS INCLUDING A MOTOR FOR MOVING ONE OR BOTH SAID ELECTRODES TO INCREASE OR REDUCE SAID GAP, COMPRISING THE STEPS OF: MEASURING FOR EACH VOLTAGE PULSE (100,200,300) APPLIED TO SAID GAP (103) THE PEAK VOLTAGE ACROSS THE GAP AND ALSO, WHEN THE PEAK VOLTAGE EXCEEDS A PREDETERMINED VALUE, MEASURING THE TIME PERIOD BETWEEN THE MOMENT THE VOLTAGE ACROSS THE GAP FIRST RISES ABOVE A FIRST PREDETERMINED VALUE AND THE MOMENT THE VOLTAGE ACROSS THE GAP REACHES A SECOND LOWER PREDETERMINED VALUE THEREAFTER, COMBINING THE RESULTS OF THE MEASUREMENTS TO PRODUCE A REGULATING VALUE THAT INCREASES WITH INCREASES OF EITHER OR BOTH OF THE MEASUREMENTS, AND REGULATING THE WIDTH OF SAID GAP WITH REFERENCE TO SAID REGULATING VALUE BY CONTROLLING THE INITIATION, DIRECTION, POWER AND BRAKING OF RELATIVE MOVEMENT OF SAID ELECTRODES, THE SENSE IN WHICH THE REGULATION IS THUS OPERATED BEING DEFINED BY THE REQUIREMENT THAT AT A TIME WHEN THE ELECTRODES ARE NOT ALREADY IN RELATIVE MOVEMENT AN INCREASE IN THE REGULATING VALUE, AT LEAST WHEN IT PERSISTS, CAUSES THE ELECTRODES TO BE MOVED CLOSER TOGETHER (FIG. 6, LINES 2 AND 5 OF TABLE).
 2. A method as defined in claim 1 in which the said measurement results are additively combined to provide a regulation value, in which, further, said regulation value is compared to a predetermined reference value and in which said means for increasing or decreasing said gap is so controlled as to minimize the deviation of said regulating value from said reference value.
 3. A method as defined in claim 2 in which the variation with time of said regulating value and of electrode position is measured in a particular time period and the change in regulating value for a succeeding time period is predicted therefrom and in which, further, in order to take account of the momentum of said electrodes (1,2) and the desired width of said gap (103) said motor (16) of said drive means is caused to affect the motion of said electrodes as follows: a. said motor (16) moves said electrodes towards each other in the case in which said electrodes were standing still or moving together at the end of said particular time period and in the case in which the predicted regulating value exceeds said reference value by at least a predetermined minimum difference; b. said motor (16) moves said electrodes away from each other in the case in which said electrodes were standing still or moving apart at the end of said particular time period and in the case in which the predicted regulating value is smaller than said reference value by at least a predetermined minimum difference.
 4. A method as defined in claim 3 in which said motor (16) moves said electrodes toward each other with full power in the case in which said electrodes were standing still at the end of said particular time period and in the case in which the predicted regulating value exceeds said reference value by at least a predetermined minimum difference and in which, further, said motor (16) moves said electrodes away from each other with full power in the case in which said electrodes were standing still at the end of said particular time period and in the case in which the predicted regulating value is slower than said reference value by at least a predetermined minimum difference, said motor moving said electrodes in other cases with less than full power, at least for low values of the difference between the predicted regulating value and said reference value.
 5. A method as defined in claim 2 in which the variation with time of said regulating value and of electrode position is measured in a particular time period and the change of said regulating value for a succeeding time period is predicted therefrom and in which, further, taking account of the momentum of the electrodes (1,2) and the desired width of said gap (103) said motor (16) brakes said electrodes with full power in the case in which they were moving towards each other at the end of such particular time period and in the case in which said predicted regulating value is smaller than said reference value and also in the case In which said electrodes were moving apart at the end of such particular time period and said predicted regulating value is greater than said reference value.
 6. A method as defined in claim 1 in which at least one electrode consists of a plurality of component electrodes, each associated with a different electro-erosion gap, in which method the peak voltage is measured for each voltage pulse for each component electrode individually, in which, further, for an electrode at which the measured peak voltage sinks below a predetermined limit value said time period is also measured, and in which, further, said peak value and said time period related to such component electrode are combined to provide a regulating value with reference to which regulating value the gaps associated with all of said component electrodes are controlled until another component electrode similarly takes over the gap width control directing function as a result of a fall of the voltage peak value at its gap.
 7. A method as defined in claim 6 which includes the steps of comparing the measured peak voltage at all of the gaps, selecting the first gap to show a measured peak voltage below a predetermined limit value as the gap with reference to which a regulating value for all of the gaps is thereafter derived and controlling all of the component electrodes, and hence all of the gaps, relative to said regulating value even after the peak voltages at all of the gaps measure higher than said predetermined limit value, until at another gap the measured peak voltage sink below said predetermined limit value, and thereafter similarly regulating all of the gaps with respect to a regulating value formed with reference to said peak value and said time period related to said other gap. 